﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace SensorNetworkUI
{
    public partial class SiteMaster : System.Web.UI.MasterPage
    {

        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                Label1.Text = Session["username"].ToString();
            }
            catch (NullReferenceException)//not logged in
            {
                HtmlString d = new HtmlString("<a href = 'login.aspx'>login</a>"+ Global.users.Count);
                Label1.Text = d.ToHtmlString();

            }
            }

        protected void NavigationMenu_MenuItemClick(object sender, MenuEventArgs e)
        {

        }

        protected void HeadLoginView_ViewChanged(object sender, EventArgs e)
        {

        }
    }
}
